<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <f:event type="preRenderView" listener="#{loginBean.redirect()}" />
        <title><ui:insert name="title">Accueil</ui:insert> - Mahum Logs</title>
        <style type="text/css"> 
            body{
                font-size: 12px !important;
            }

            .formMenu .ui-button{
                display:block;
                width: 150px;
            }

            .ui-layout-unit{
                border:none !important;
                padding:0;
            }

            .ui-layout-south {
                z-index:20 !important;
                overflow:visible !important;
            }

            .ui-layout-south .ui-layout-unit-content {
                overflow:visible !important;
            }

            .ui-layout-north .ui-layout-unit-content {
                overflow:visible !important;
            }

            #titlePage{
                background: none;
                color:white;
                margin:0;
            }

            .titleLayout .ui-widget-content{
                background: none;
            }

            .titleLayout{
                border-bottom: 1px solid gray !important;
                padding:5px !important;
                background: #333;
                border-radius:0 !important;
            }
        </style>
        <ui:insert name="cssStyle" />
    </h:head>
    <h:body>
        <p:growl id="growl" autoUpdate="false" showDetail="true"/>
        <p:layout fullPage="true">
            <p:layoutUnit styleClass="titleLayout" position="north">
                <h:graphicImage alt="logo" url="/resources/img/logo.png" style=" z-index: 2; top: 0; left:0; position:absolute;" height="40"/>
                <h1 id="titlePage" style="text-align: center;"><ui:insert name="titlePage">Mahum Logs</ui:insert></h1>
                <h:graphicImage alt="logo" url="/resources/img/logo.png" style=" z-index: 2; top: 0; right:0; position:absolute;" height="40"/>
            </p:layoutUnit>
            <p:layoutUnit position="west">
                <ui:include src="/resources/templates/header.xhtml" />
            </p:layoutUnit>
            <ui:insert name="layoutEast" />
            <p:layoutUnit position="center">
                <ui:insert name="content" />
            </p:layoutUnit>
            <p:layoutUnit position="south">
                <p:panel style="text-align: center">
                    <h:form>
                        <h:outputLabel value="Copyright © 2014" escape="true"/>
                        <p:commandLink value=" - TeamMahum - " id="link" onclick="return false" style="text-decoration: none"/>
                        <h:outputLabel value="Tous droits réservés"/>
                        <p:overlayPanel for="link">
                            Jérémy LESOUHAITIER
                            <br/>
                            Arthur BERGELIN
                            <br/>
                            Edouard BIDALOT
                            <br/>
                            Jeffrey BEY
                            <br/>
                            Adrien BOISSON
                        </p:overlayPanel>
                    </h:form>
                </p:panel>

            </p:layoutUnit>
        </p:layout>
        <ui:insert name="dialogs"/>
    </h:body>
</html>
